package com.example.processer;

import com.example.entity.Person;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.item.ItemProcessor;

/**
 * @description
 * @author: ruanchengzhi
 * @create: 2021-07-29 19:57
 **/
public class BatchItemProcessor implements ItemProcessor<Person, Person> {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public Person process(Person person) throws Exception {
        logger.info("[op:batchItemProcessor] process person [{}]", person.toString());
        return person;
    }
}
